#!/usr/bin/env python3

import rospy
from DrRobotController_six_axes_can.msg import add_pose
# import DrRobotController_six_axes as dr

def callback(data):
    import DrRobotController_six_axes as dr
    dr.add_pose(id_num=data.id_num, t=data.t)
    rospy.loginfo("add_pose_node")


def listener():
    rospy.init_node("add_pose", anonymous=True)
    rospy.Subscriber("add_pose", add_pose, callback)
    rospy.spin()


if __name__ == '__main__':
    listener()

